package util.AST.Expression;

import checker.SemanticException;
import checker.Visitor;
import util.AST.Terminal.Number;

public class NumberUnaryExpression extends UnaryExpression {

	private Number num;
	private String t;
	
	public NumberUnaryExpression(Number num) {
		this.num = num;
	}

	public Number getNum() {
		return num;
	}
	public NumberUnaryExpression(String t) {
		this.t = t;
	}

	public String getT() {
		return t;
	}
	@Override
	public Object visit(Visitor v, Object o) throws SemanticException {
		// TODO Auto-generated method stub
		return v.visitNumberUnaryExpression(this, o);
	}

}
